

def copy_properties(source, target):
    for key, value in source.__dict__.items():
        if hasattr(target, key):
            setattr(target, key, value)